﻿using UnityEngine;

public class CameraRotation : MonoBehaviour
{

    public bool IsActive;
    public float Speed = 1;

    private void Update()
    {
        if (this.IsActive)
        {
            this.transform.Rotate(this.Speed * Time.deltaTime * Vector3.up);
        }
    }

}
